package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.BaseFlowEntity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by dzw on 2017/12/4.
 * 合同成交登记
 */
@Entity
@Table(name="ec_contractDeal")
public class ContractDeal extends BaseFlowEntity {
    private static final long serialVersionUID = 6162283275552131103L;

    /**
     * 客户信息表
     */
    private CustomerInfo customerInfo;
    /**
     * 合同名称 name
     */
    /**
     * 签约时间
     */
    private Date signDate;
    /**
     * 合同金额
     */
    private BigDecimal contractMoney;
    /**
     * 是否存在业务机会
     */
    private String isHaveChance;
    /**
     * 关联业务机会
     */
    private BusinessChance businessChance;

    @ManyToOne(fetch = FetchType.LAZY)
    public CustomerInfo getCustomerInfo() {
        return customerInfo;
    }

    public void setCustomerInfo(CustomerInfo customerInfo) {
        this.customerInfo = customerInfo;
    }

    public Date getSignDate() {
        return signDate;
    }

    public void setSignDate(Date signDate) {
        this.signDate = signDate;
    }

    public BigDecimal getContractMoney() {
        return contractMoney;
    }

    public void setContractMoney(BigDecimal contractMoney) {
        this.contractMoney = contractMoney;
    }

    public String getIsHaveChance() {
        return isHaveChance;
    }

    public void setIsHaveChance(String isHaveChance) {
        this.isHaveChance = isHaveChance;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    public BusinessChance getBusinessChance() {
        return businessChance;
    }

    public void setBusinessChance(BusinessChance businessChance) {
        this.businessChance = businessChance;
    }
}
